<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/global.css" />
	<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.validate.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
<script type="text/JavaScript">
$(document).ready(function(){
	setTimeout(function() {
		$(".flash-message").fadeOut('slow');
    }, 5000);
});
</script>

</head>

<body bgcolor="#f5f5f5">

<!-- Begin body-->
<div id="background" class="clearfix">
    <!-- Begin top-->
	<div id="top">
        <a href="#"><img src="<?php echo Html::imageUrl("logo.png");?>" width="189" height="64" border="0" /></a>
        <div id="blue">  <a href="#"> Đặng Thanh Tú  |   My Home   |   rswork   |    R.U.N Apps <img src="<?php echo Html::imageUrl("tamgiac.png");?>" width="8" height="5" border="0">   |   Support   |    Settings  |    <?php echo Chtml::link("Sign out",array("login/logout"));?>  </a></div> 
  	</div>
    <!-- End top -->
    
    <!-- Begin menu-->
    <div id="mainmenu1">
           
                <?php 
                    $pid = Yii::app()->request->getParam('pid');
                    $this->widget('zii.widgets.CMenu',array(
		'items'=>array(
			array('label'=>'Dashboard', 'url'=>array('/dashboard/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='dashboard'),
			array('label'=>'Tasks', 'url'=>array('/tasks/index','pid'=>$pid), 'active'=>Yii::app()->controller->id=='tasks'),
			array('label'=>'Bugs', 'url'=>array('/bugs/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='bugs'),
			array('label'=>'Milestones', 'url'=>array('/milestones/index','pid'=>$pid), 'active'=>Yii::app()->controller->id=='milestones'),
			
			array('label'=>'Meeting', 'url'=>array('/meeting/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='meeting'),
			array('label'=>'Messages', 'url'=>array('/messages/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='messages'),
			array('label'=>'Files', 'url'=>array('/files/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='files'),
			array('label'=>'Notebooks', 'url'=>array('/notebooks/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='notebooks'),
			array('label'=>'Risks', 'url'=>array('/risks/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='risks'),
			array('label'=>'Billing', 'url'=>array('/billing/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='billing'),
			array('label'=>'People', 'url'=>array('/people/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='people'),
			
		
			array('label'=>'Project Settings', 'url'=>array('/settings/index','pid'=>$pid),'active'=>Yii::app()->controller->id=='settings'),
	
	))); ?>
	</div>
    <!-- End menu -->
    
    <!-- Begin content -->
   	<div class="clear"></div>
            <?php 
			foreach(Yii::app()->user->getFlashes() as $key => $flashMessage) {
			    //if ($key=='counters')
			    	echo "<div class='flash-message flash-{$key}'>{$flashMessage}</div>";
			}
            ?>
            
            <?php echo $content;?>
                 
</div>
<!-- End body -->

<!-- Begin footer -->
  <a href="#"><img src="<?php echo Html::imageUrl("logonho.png");?>" width="145" height="48" border="0" style="float:right; margin-top:20px;"></a>
  <div id="copyright">© 2011 Bản Quyền Thuộc về Runsystem Crop. Sử dụng tốt nhất trên trình duyệt Fire Fox.</div>
<!-- End footer -->

<?php // Initialize the extension
	$this->widget('application.extensions.jnotify.JNotify', array(
		'statusBarId'=>'StatusBar',
		'notificationId'=>'Notification',
		'notificationHSpace'=>'30px',	
		'notificationWidth'=>'280px',
		'notificationShowAt'=>'topRight',
)); ?>
            

</body>
</html>